package org.uim.cricket.storage.raise.fetch;

import org.uim.cricket.util.io.FileOpener;

public class FileResourceFetcher implements ResourceFetchable {

	@Override
	public StringBuilder fetchResource(String argument) throws Exception {
		if (argument == null) {
			throw new NullPointerException ("Resource location can't be null!");
		}
		FileOpener fo = new FileOpener(argument);
		StringBuilder text = fo.open();
		
		return text;
	}

}
